<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<title>Document</title>
	<script>
		
		window.onload= function(){

			box = document.getElementById("box")


			console.log(box.class)

			// box.innerHTML = "asdfjhaksjdfhskajdfhkjs";
			// console.log(box.innerHTML);
			// console.log(box.innerText);

			// box.innerText ="dsfsdlkfj"
			// 
			baidu = document.getElementById("baidu");

			console.log(baidu.getAttribute('xbs'))

			baidu.setAttribute('name','8000');

		}
	</script>
</head>
<body>
	<p id="box" class="xbs"><span>学并思</span>bbbb</p>
	<a href="http://www.baidu.com" name="9000" id="baidu"  xbs="789"></a>
</body>
</html>